package com.sample.wanandroidx.ui.fragment

import android.os.Bundle
import android.view.View
import com.sample.library.BaseViewModel
import com.sample.wanandroidx.basic.BaseMvvmFragment
import com.sample.wanandroidx.databinding.LayoutRefreshListBinding

//通用的List列表展示页
class GenericListFragment : BaseMvvmFragment<LayoutRefreshListBinding, BaseViewModel>(LayoutRefreshListBinding::inflate) {

    override fun initialization() {}

    override fun initLazyLoad() {}

    override fun onRightClick(v: View?) {
    }

    companion object {
        const val KEY_INDEX = "KEY_INDEX"

        @JvmStatic
        fun newInstance(index: Int) = GenericListFragment().apply {
            arguments = Bundle().apply {
                putInt(KEY_INDEX, index)
            }
        }
    }

}